<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
<ui:composition template="base.xhtml">
    <ui:define name="title">Cinema Admin website</ui:define>
    <ui:define name="content">
        <h:outputStylesheet library="css" name="admin.css"/>
        <h:outputScript library="js" name="adminsite.js"/>

        <f:event listener="#{loginBean.checkLogin}" type="preRenderView"/>

        <div class="centerDiv">
            <h:form>
                <h:commandButton class="selectBtn1" value="Films" action="adminFilms?faces-redirect=true"/>
                <h:commandButton class="selectBtn2" value="Rooms" action="adminRooms?faces-redirect=true"/>
                <h:commandButton class="selectBtn3" value="Showings" action="adminShowings?faces-redirect=true"/>
            </h:form>

            <ui:insert name="adminContent"/>

            <h:form>
                <h:commandButton class="adminButton" action="#{loginBean.logOut}" value="Log out"/>
            </h:form>
            <h:messages/>
        </div>
    </ui:define>
</ui:composition>
</html>